From 509bf29cc9ae96350547946b207c0c0b5f61917f Mon Sep 17 00:00:00 2001 From: Anton Kikin Date: Sat, 19 Sep 2020 05:16:07 +0300 Subject: [PATCH] luci-base: make translatable default values for dhcp hostname We must be able to translate these values. Fixes: fd75c2b7c ("luci-base: add default value options dhcp hostname") Signed-off-by: Anton Kikin --- .../luci-base/htdocs/luci-static/resources/protocol/dhcp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js index 28f06ecb8c..bacbf559f9 100644 --- a/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js +++ b/modules/luci-base/htdocs/luci-static/resources/protocol/dhcp.js @@ -21,8 +21,8 @@ return network.registerProtocol('dhcp', { o = s.taboption('general', form.Value, 'hostname', _('Hostname to send when requesting DHCP')); o.default = ''; - o.value('', 'Send the hostname of this device'); - o.value('*', 'Do not send a hostname'); + o.value('', _('Send the hostname of this device')); + o.value('*', _('Do not send a hostname')); o.datatype = 'or(hostname, "*")'; o.load = function(section_id) { return callFileRead('/proc/sys/kernel/hostname').then(L.bind(function(hostname) { -- 2.30.2